From 78f0a4d7f1cd1b93f7b466b3a2fb8d92749acd7f Mon Sep 17 00:00:00 2001 From: Purodha B Blissenbach Date: Fri, 27 Feb 2009 07:13:37 +0000 Subject: [PATCH] (bug 17692) Added (list of members) link to 'user' in Special:Listgrouprights --- RELEASE-NOTES | 3 ++- includes/specials/SpecialListgrouprights.php | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3e40a011c8..127bb0176c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -223,6 +223,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17460) Client ecoding is now correctly set for PostgreSQL * (bug 17648) Prevent floats from intruding into edit area in previews if no toolbar present * (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats +* (bug 17692) Added (list of members) link to 'user' in Special:Listgrouprights == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions @@ -345,4 +346,4 @@ going to run a public MediaWiki, so you can be notified of security fixes. === IRC help === -There's usually someone online in #mediawiki on irc.freenode.net \ No newline at end of file +There's usually someone online in #mediawiki on irc.freenode.net diff --git a/includes/specials/SpecialListgrouprights.php b/includes/specials/SpecialListgrouprights.php index 5c76df8c7c..d1fc0818e2 100644 --- a/includes/specials/SpecialListgrouprights.php +++ b/includes/specials/SpecialListgrouprights.php @@ -63,10 +63,13 @@ class SpecialListGroupRights extends SpecialPage { $grouppage = $this->skin->makeLink( $grouppageLocalized, $groupnameLocalized ); } - if ( !in_array( $group, $wgImplicitGroups ) ) { + if ( $group === 'user' ) { + // Link to Special:listusers for implicit group 'user' + $grouplink = '
' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Listusers' ), wfMsgHtml( 'listgrouprights-members' ), '' ); + } elseif ( !in_array( $group, $wgImplicitGroups ) ) { $grouplink = '
' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Listusers' ), wfMsgHtml( 'listgrouprights-members' ), 'group=' . $group ); } else { - // No link to Special:listusers for implicit groups as they are unlistable + // No link to Special:listusers for other implicit groups as they are unlistable $grouplink = ''; } -- 2.20.1